package com.dyna.controller;

import com.dyna.service.IMessageProviderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class SendMessageController {

    @Resource
    private IMessageProviderService providerService;

    @GetMapping("/sendMessage")
    public String sendMessage(){
        return providerService.Send();
    }
}
